package com.shujia.test

import java.text.SimpleDateFormat

object TestDate {
  def main(args: Array[String]): Unit = {

    val simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss")

    val str = "20180503101914"

    val date = simpleDateFormat.parse(str)
    println(date.getTime)

  }
}
